﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIA.Presentation.Contracts;
using VIA.Presentation;
using VIA.SiMoJi.Domain.Inspection;
using VIA.Project.Presentation.ViewModel.Inspection;
using VIA.Integration.Presentation;
using VIA.SiMoJi.Domain.Option;

namespace VIA.SiMoJi.Presentation.ViewModel
{
    [ViewModel(typeof(IFeiDaStationOptionView))]
    internal class FeiDaStationOptionViewModel : EditorViewModel<IFeiDaStationOptionView, FeiDaStationOption>
    {
        private CylinderDebugViewModel cM_压膜气缸;
        private CylinderDebugViewModel cM_抽屉定位气缸;

        public Feeder Station { get; }
        public Feeder FeiDaStation2 { get; }
        public CylinderDebugViewModel CM_压膜气缸 { get => cM_压膜气缸; set => SetProperty(ref cM_压膜气缸, value); }
        public CylinderDebugViewModel CM_抽屉定位气缸 { get => cM_抽屉定位气缸; set => SetProperty(ref cM_抽屉定位气缸, value); }
        public FeiDaStationOptionViewModel(IServiceProvider service, Inspector inspector) : base(service)
        {
            Station = inspector.Feeder1;
            CM_压膜气缸 = new(Station.YaLiao_Cylinder) { Name = "压膜气缸" };
            CM_抽屉定位气缸 = new(Station.DingWei_Cylinder) { Name = "抽屉定位气缸" };
        }
    }
}
